package cn.sdormitory.violative.dao;

import cn.sdormitory.violative.entity.ViolationClassInterval;
import cn.sdormitory.violative.entity.ViolationPatrol;
import cn.sdormitory.violative.vo.ViolationPatrolReceiveInfoVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ViolationClassIntervalDao extends BaseMapper<ViolationClassInterval> {
    List<ViolationPatrolReceiveInfoVo> getViolationPatrolReceiveInfos(@Param("id") long id);
	
	// 根据时间获取违纪次数
	Integer getDayViolationCount(String accessDate, List<Long> classIds);
	
	// 根据月份获取违纪次数
	List<ViolationPatrol> getMonthlyViolationCount(String accessDate, List<Long> classIds);
	
	// 根据时间段获取违纪数据
	List<ViolationPatrol> getViolationPatrolStatistics(String startDate, String endDate, List<Long> classIds);
	
	// 根据时间段和班级id获取违纪详情
	List<ViolationPatrol> getViolationDetailList(String startDate, String endDate, String classId);
}
